﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucAddProduct.ascx.cs"
    Inherits="UserControl_ucAddProduct" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<div class=" block">
</div>
<div class="Post">
    <div class="Post-tl">
    </div>
    <div class="Post-tr">
    </div>
    <div class="Post-bl">
    </div>
    <div class="Post-br">
    </div>
    <div class="Post-tc">
    </div>
    <div class="Post-bc">
    </div>
    <div class="Post-cl">
    </div>
    <div class="Post-cr">
    </div>
    <div class="Post-cc">
    </div>
    <div class="Post-body">
        <div class="Post-inner">
            <div class="PostContent">
                <div class="full_width">
                    <p class="style1">
                        <a href="Default.aspx">Home</a> / <strong class="active-link">Booking</strong>
                    </p>
                </div>
                <h2 style="text-align: center" class="PostHeaderIcon-wrapper">
                    Edit Product</h2>
                <asp:TextBox ID="txtProductID" runat="server" Style="display: none"></asp:TextBox>
                <div class="PostHeaderIcons metadata-icons">
                    <div id="message_green" runat="server" style="display: none">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="green-left">
                                    Infomation update sucessfully. <a href="Booking.aspx">New Booking.</a>
                                </td>
                                <td class="green-right">
                                    <a class="close-green">
                                        <img src="image/icon_close_green.gif" alt="" /></a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="PostContent">
                    <div class="article">
                        <span class="print-link"></span>
                        <table style="border-radius: 7px; margin-top: -5px; width: 100%">
                            <tr>
                                <td>
                                    <asp:UpdatePanel ID="panelManu" runat="server">
                                        <ContentTemplate>
                                            <table id="table5">
                                                <tr>
                                                    <td class="style3">
                                                        Product Name
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtProductName" runat="server" OnTextChanged="txtProductName_TextChanged"
                                                            AutoPostBack="true"></asp:TextBox>
                                                    </td>
                                                    <td class="style3">
                                                        Part or Sell
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="drType" runat="server" Width="80px">
                                                            <asp:ListItem Value="1">Part</asp:ListItem>
                                                            <asp:ListItem Value="2">Sell</asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                                                            ValidationGroup="save" ControlToValidate="drType"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style3">
                                                        Product Code
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtProductCode" CssClass="inp-form" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td class="style3">
                                                        Manufacture
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="drManufacture" runat="server" Height="22px" Width="168px" AutoPostBack="True"
                                                            OnSelectedIndexChanged="drManufacture_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td class="style3">
                                                        Model
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="drModel" runat="server" Height="22px" Width="168px" Style="display: ">
                                                        </asp:DropDownList>
                                                        <%--<asp:ComboBox ID="drModel" runat="server" Height="22px" Width="120px" AutoCompleteMode="Append">
                                                        </asp:ComboBox>--%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style3">
                                                        Type
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtType" CssClass="inp-form" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td class="style3">
                                                        Cost
                                                    </td>
                                                    <td>
                                                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtCost"
                                                            WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="0">
                                                        </asp:TextBoxWatermarkExtender>
                                                        <asp:TextBox ID="txtCost" CssClass="inp-form" runat="server">0</asp:TextBox>
                                                       <%-- <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers"
                                                            TargetControlID="txtCost">
                                                        </asp:FilteredTextBoxExtender>--%>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                                            ControlToValidate="txtCost" ValidationGroup="save"></asp:RequiredFieldValidator>
                                                    </td>
                                                    <td class="style3">
                                                        RRP
                                                    </td>
                                                    <td>
                                                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtRRP"
                                                            WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="0">
                                                        </asp:TextBoxWatermarkExtender>
                                                        <asp:TextBox ID="txtRRP" CssClass="inp-form" runat="server">0</asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                                                            ControlToValidate="txtRRP" ValidationGroup="save"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" class="style3">
                                                        Quantity
                                                    </td>
                                                    <td valign="top">
                                                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers"
                                                            TargetControlID="txtQuantity">
                                                        </asp:FilteredTextBoxExtender>
                                                        <asp:TextBox ID="txtQuantity" CssClass="inp-form" runat="server"></asp:TextBox>
                                                    </td>
                                                    <td valign="top" class="style3">
                                                        Descriptions
                                                    </td>
                                                    <td colspan="3" valign="top">
                                                        <asp:TextBox ID="txtDes" TextMode="MultiLine" Width="95%" Height="100px" runat="server"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" style="text-align: center">
                                                        <asp:Button ID="btnSave" runat="server" Height="30px" Text="Save" OnClick="btnSave_Click"
                                                            ValidationGroup="save" />
                                                        <asp:Button ID="btnCancel" runat="server" Height="30px" Text="Cancel" OnClick="btnCancel_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <p>
                        <asp:HyperLink ID="hyperNew" runat="server">Add Image</asp:HyperLink></p>
                    <asp:FileUpload ID="fileUpload" runat="server" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                        ControlToValidate="fileUpload" ValidationGroup="btnsave"></asp:RequiredFieldValidator>
                    <asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click"
                        ValidationGroup="btnsave" /><br />
                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                    <asp:GridView ID="grdImgItems" runat="server" AutoGenerateColumns="False" Width="500px"
                        EmptyDataText="No images found" OnRowDataBound="grdImgItems_RowDataBound">
                        <Columns>
                            <asp:ImageField HeaderText="Hình" DataImageUrlField="ImageURL" DataImageUrlFormatString="~/Admin/image/Items/{0}">
                                <ControlStyle Height="80px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:ImageField>
                            <asp:TemplateField HeaderText="Mặc định">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkDefault" runat="server" Enabled="false" />&nbsp;
                                    <asp:ImageButton ID="btnDefault" runat="server" ImageUrl="~/Admin/image/btnDefault.jpg" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Xóa">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnDelImg" runat="server" CausesValidation="false" CommandName="delete"
                                        CommandArgument='<%# Eval("ID") %>' ImageUrl="~/Admin/image/del.gif" OnClick="btnDelImg_Click" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                        <EmptyDataTemplate>
                            Not Found Image
                        </EmptyDataTemplate>
                        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                        <HeaderStyle BackColor="Tan" Height="30px" Font-Bold="True" />
                        <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    </asp:GridView>
                </div>
                <div class="cleared">
                </div>
                <div class="PostFooterIcons metadata-icons">
                </div>
            </div>
        </div>
        <div class="cleared">
        </div>
    </div>
</div>
</div>
<style type="text/css">
    .style1
    {
        height: 25px;
    }
    .style3
    {
        text-align: right;
    }
</style>
<div class=" block">
</div>
